﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using IsmlTools.Bil;
using IsmlTools.Common;
using IsmlTools.Model;
using IsmlTools.Service;

namespace IsmlTools
{
    public partial class MainForm : Form
    {
        PreliminaryResult _resultsmanager = new PreliminaryResult();
        private IsmlProcessor _ismlprocessor = null;

        public MainForm()
        {
            InitializeComponent();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {
            InitializeDb initializeDb = new InitializeDb();
            initializeDb.Initialize();
            //PictureManagerTest();
        }


        private void PictureManagerTest()
        {
            PictureManager picturemanager = new PictureManager();

            picturemanager.MapHelper(@"C:\Users\Sheng\Documents\Visual Studio 2012\Projects\IsmlTools\IsmlTools\Test\Map_p2-1.jpg", @"C:\Users\Sheng\Documents\Visual Studio 2012\Projects\IsmlTools\IsmlTools\Test\Map_p2-1.gif",
                LanguageCode.Sc, new string[] {"一","二","三","四","五","六","七" }, null);
            picturemanager.ChartHelper(@"C:\Users\Sheng\Documents\Visual Studio 2012\Projects\IsmlTools\IsmlTools\Test\Chart_p2-1.jpg", @"C:\Users\Sheng\Documents\Visual Studio 2012\Projects\IsmlTools\IsmlTools\Test\Chart_p2-1.gif",
                LanguageCode.Sc, new string[] { "一", "二", "三", "四", "五", "六", "七" }, null);
        }

        private void RunButton_Click(object sender, EventArgs e)
        {
            string page = PageListBox.SelectedValue.ToString();

            _ismlprocessor = new IsmlProcessor();

            //Day result = ismlprocessor.run(page);
        }

    }
}
